<%= render :file => 'work_items/_index.html', :locals => { :stage => @work_item.stage, :type => @work_item.work_item_type } %>
<div id="tmp_stage_<%= @work_item.stage.id %>_type_<%= @work_item.work_item_type.id %>_designer_work_items" >
  <%= render :file => 'projects/designer_work_items_in_index.html', :locals => { :stage => @work_item.stage, :type => @work_item.work_item_type} %>
</div>
<script>
  <%= remote_function_to_reload_stage_in_project_index @work_item.stage %>
  <%= remote_function_to_reload_project_in_project_index @work_item.stage.project %>
  <%= remote_function_to_reload_project_stat_in_project_index %>
  $('stage_<%= @work_item.stage.id %>_type_<%= @work_item.work_item_type.id %>_designer_work_items').update($('tmp_stage_<%= @work_item.stage.id %>_type_<%= @work_item.work_item_type.id %>_designer_work_items').innerHTML);
  $('tmp_stage_<%= @work_item.stage.id %>_type_<%= @work_item.work_item_type.id %>_designer_work_items').remove();
</script>